<extend name="Public:innerbase" />
<block name="js">
<include file="Public:upload" />
</block>
<block name="content">
<div class="container-fluid">
	<div class="page-header wm-page-header">
		<h4>微餐饮回复配置</h4>
	</div>
	<form class="form-horizontal" method="post" action="">
		<input type="hidden" name="id" value="{$set.id}" />
		<div class="form-group">
			<label class="col-sm-2 control-label wm-control-label" >回复关键字</label>
			<div class="col-md-4">
				<input type="text" name="keyword" value="{$keyword.keyword|default='订餐'}" class="form-control" />
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label wm-control-label" >回复标题</label>
			<div class="col-md-4">
				<input type="text" name="title" value="{$set.title|default='微信订餐'}" class="form-control" />
			</div>
		</div>
		<div class="form-group">
			<label for="picurl" class="col-sm-2 control-label wm-control-label">回复图片</label>
			<div class="col-sm-6" >
				<input type="hidden" name="picurl" id="picurl" value="{$set.picurl|default=RES.'/images/photo/noneimg.jpg'}" class="form-control" />
				<img id="picurlHolder" style="width:216px;height:120px;" class="img-rounded" <if condition="($set eq null) OR($set['picurl'] eq '')">src="{:RES}/images/photo/noneimg.jpg"</if> src="{$set.picurl}"/>
				<div class="btn-group" style="vertical-align:bottom;">
					<span class="btn btn-xs btn-primary" onclick="selectAsset('picurl',720,400)">
						<span class="glyphicon glyphicon-cloud-upload"></span>选择
					</span>
					<span class="btn btn-primary btn-xs" onclick="previewImg('picurl')">
						<span class="glyphicon glyphicon-picture"></span>预览
					</span>
					&nbsp;&nbsp;建议尺寸:720*400
				</div>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label wm-control-label" >内容介绍</label>
			<div class="col-md-4">
				<textarea style="height:140px" name="info" id="info" class="form-control">{$set.info}</textarea>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label wm-control-label" >订购方式</label>
			<div class="col-md-4">
				<label class="checkbox-inline"><input type="checkbox" name="yuding" value="1" <if condition="$set.yuding eq 1">checked</if> /> 开启预定</label>
				<label class="checkbox-inline"><input type="checkbox" name="waimai" value="1" <if condition="$set.waimai eq 1">checked</if> /> 开启外卖</label>
			</div>
		</div>
		<div class="form-group">
			<div class="col-md-4 col-sm-offset-2">
				<button type="submit" class="btn btn-success">保存</button>
			</div>
		</div>
	</form>
</div>
</block>